<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <ul>
        <li v-for="name in arr" >{{name}}</li>
    </ul>
        <table border="2">
            <caption>英雄表</caption>
            <tr>
                <th>名字</th>
                <th>类型</th>
                <th>价格</th>
            </tr>
            <tr v-for="hero in heroes">
                <td>{{hero.name}}</td>
                <td>{{hero.type}}</td>
                <td>{{hero.money}}</td>
            </tr>
        </table>
</div>
    <script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
    <script>
        let count = 0;
        let v = new Vue({
            el:"body>div",
            data: {
                arr: ["孙尚香", "诸葛亮", "张飞"],
                heroes: [
                    {name: "孙悟空", type: "18", money: 1559},
                    {name: "貂蝉", type: "18", money: 4988},
                    {name: "猪八戒", type: "18", money: 4898}
                ]
            }


        })
    </script>



</body>
</html>